package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 农家乐——农家美食信息
 */
@Entity(name = "xw_farm_foodinfo")
public class XwFarmFoodinfo {
    /**
     * 农家美食id
     */
    @Column(name = "farm_food_id")
    private Integer farmFoodId;

    /**
     * 农家乐加密id（店铺id）
     */
    @Column(name = "farm_encryptId")
    private String farmEncryptid;

    /**
     * 商家加密id
     */
    @Column(name = "business_encryptId")
    private String businessEncryptid;

    /**
     * 套餐类型(单人早餐，单人午餐，单人晚餐，单人夜宵、其他）
     */
    @Column(name = "farm_food_type")
    private String farmFoodType;

    /**
     * 套餐说明
     */
    @Column(name = "farm_food_desc")
    private String farmFoodDesc;

    /**
     * 单价（1份）(￥100X1)
     */
    @Column(name = "farm_food_price")
    private Double farmFoodPrice;

    /**
     * 数量
     */
    @Column(name = "farm_food_number")
    private Integer farmFoodNumber;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_food_updatetime")
    private Date farmFoodUpdatetime;

    /**
     * 添加时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_food_createtime")
    private Date farmFoodCreatetime;

    public XwFarmFoodinfo(){

    }

    public XwFarmFoodinfo(String farmEncryptid, String businessEncryptid, String farmFoodType, String farmFoodDesc, Double farmFoodPrice, Integer farmFoodNumber, Date farmFoodUpdatetime, Date farmFoodCreatetime) {
        this.farmEncryptid = farmEncryptid;
        this.businessEncryptid = businessEncryptid;
        this.farmFoodType = farmFoodType;
        this.farmFoodDesc = farmFoodDesc;
        this.farmFoodPrice = farmFoodPrice;
        this.farmFoodNumber = farmFoodNumber;
        this.farmFoodUpdatetime = farmFoodUpdatetime;
        this.farmFoodCreatetime = farmFoodCreatetime;
    }


    /**
     * 获取农家美食id
     *
     * @return farm_food_id - 农家美食id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getFarmFoodId() {
        return farmFoodId;
    }

    /**
     * 设置农家美食id
     *
     * @param farmFoodId 农家美食id
     */
    public void setFarmFoodId(Integer farmFoodId) {
        this.farmFoodId = farmFoodId;
    }

    /**
     * 获取商家加密id
     *
     * @return business_encryptId - 商家加密id
     */
    public String getBusinessEncryptid() {
        return businessEncryptid;
    }

    /**
     * 设置商家加密id
     *
     * @param businessEncryptid 商家加密id
     */
    public void setBusinessEncryptid(String businessEncryptid) {
        this.businessEncryptid = businessEncryptid;
    }

    /**
     * 获取套餐类型(单人早餐，单人午餐，单人晚餐，单人夜宵、其他）
     *
     * @return farm_food_type - 套餐类型(单人早餐，单人午餐，单人晚餐，单人夜宵、其他）
     */
    public String getFarmFoodType() {
        return farmFoodType;
    }

    /**
     * 设置套餐类型(单人早餐，单人午餐，单人晚餐，单人夜宵、其他）
     *
     * @param farmFoodType 套餐类型(单人早餐，单人午餐，单人晚餐，单人夜宵、其他）
     */
    public void setFarmFoodType(String farmFoodType) {
        this.farmFoodType = farmFoodType;
    }

    /**
     * 获取套餐说明
     *
     * @return farm_food_desc - 套餐说明
     */
    public String getFarmFoodDesc() {
        return farmFoodDesc;
    }

    /**
     * 设置套餐说明
     *
     * @param farmFoodDesc 套餐说明
     */
    public void setFarmFoodDesc(String farmFoodDesc) {
        this.farmFoodDesc = farmFoodDesc;
    }

    /**
     * 获取单价（1份）(￥100X1)
     *
     * @return farm_food_price - 单价（1份）(￥100X1)
     */
    public Double getFarmFoodPrice() {
        return farmFoodPrice;
    }

    /**
     * 设置单价（1份）(￥100X1)
     *
     * @param farmFoodPrice 单价（1份）(￥100X1)
     */
    public void setFarmFoodPrice(Double farmFoodPrice) {
        this.farmFoodPrice = farmFoodPrice;
    }

    /**
     * 获取数量
     *
     * @return farm_food_number - 数量
     */
    public Integer getFarmFoodNumber() {
        return farmFoodNumber;
    }

    /**
     * 设置数量
     *
     * @param farmFoodNumber 数量
     */
    public void setFarmFoodNumber(Integer farmFoodNumber) {
        this.farmFoodNumber = farmFoodNumber;
    }

    /**
     * 获取更新时间
     *
     * @return farm_food_updatetime - 更新时间
     */
    public Date getFarmFoodUpdatetime() {
        return farmFoodUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param farmFoodUpdatetime 更新时间
     */
    public void setFarmFoodUpdatetime(Date farmFoodUpdatetime) {
        this.farmFoodUpdatetime = farmFoodUpdatetime;
    }

    /**
     * 获取添加时间
     *
     * @return farm_food_createtime - 添加时间
     */
    public Date getFarmFoodCreatetime() {
        return farmFoodCreatetime;
    }

    /**
     * 设置添加时间
     *
     * @param farmFoodCreatetime 添加时间
     */
    public void setFarmFoodCreatetime(Date farmFoodCreatetime) {
        this.farmFoodCreatetime = farmFoodCreatetime;
    }


    public String getFarmEncryptid() {
        return farmEncryptid;
    }

    public void setFarmEncryptid(String farmEncryptid) {
        this.farmEncryptid = farmEncryptid;
    }

    @Override
    public String toString() {
        return "XwFarmFoodinfo{" +
                "farmFoodId=" + farmFoodId +
                ", farmEncryptid='" + farmEncryptid + '\'' +
                ", businessEncryptid='" + businessEncryptid + '\'' +
                ", farmFoodType='" + farmFoodType + '\'' +
                ", farmFoodDesc='" + farmFoodDesc + '\'' +
                ", farmFoodPrice=" + farmFoodPrice +
                ", farmFoodNumber=" + farmFoodNumber +
                ", farmFoodUpdatetime=" + farmFoodUpdatetime +
                ", farmFoodCreatetime=" + farmFoodCreatetime +
                '}';
    }
}